home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / OptionsSpeedLimitPage.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  104 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_OPTIONSSPEEDLIMITPAGE_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_)
  20. #define AFX_OPTIONSSPEEDLIMITPAGE_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // OptionsSpeedLimit.h : Header-Datei
  26. //
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Dialogfeld COptionsSpeedLimitPage 
  30. #include "..\Accounts.h"
  31.  
  32. class COptionsDlg;
  33. class COptionsSpeedLimitPage : public COptionsPage
  34. {
  35. // Konstruktion
  36. public:
  37.     COptionsSpeedLimitPage(COptionsDlg *pOptionsDlg);   // Standardkonstruktor
  38.     ~COptionsSpeedLimitPage();
  39.     
  40.     virtual void SaveData();
  41.     virtual void LoadData();
  42.  
  43.     void SetCtrlState();
  44.     
  45.     SPEEDLIMITSLIST m_DownloadSpeedLimits;
  46.     SPEEDLIMITSLIST m_UploadSpeedLimits;
  47.  
  48. // Dialogfelddaten
  49.     //{{AFX_DATA(COptionsSpeedLimitPage)
  50.     enum { IDD = IDD_OPTIONS_SPEEDLIMIT };
  51.     CButton    m_DownloadUpCtrl;
  52.     CListBox    m_DownloadRulesListCtrl;
  53.     CButton    m_DownloadRemoveCtrl;
  54.     CButton    m_DownloadDownCtrl;
  55.     CButton    m_DownloadAddCtrl;
  56.     CButton    m_UploadUpCtrl;
  57.     CListBox    m_UploadRulesListCtrl;
  58.     CButton    m_UploadRemoveCtrl;
  59.     CButton    m_UploadDownCtrl;
  60.     CButton    m_UploadAddCtrl;
  61.     CEdit    m_UploadValueCtrl;
  62.     CEdit    m_DownloadValueCtrl;
  63.     int        m_DownloadSpeedLimitType;
  64.     int        m_UploadSpeedLimitType;
  65.     int        m_DownloadValue;
  66.     int        m_UploadValue;
  67.     //}}AFX_DATA
  68.  
  69. protected:
  70.     void ShowSpeedLimit( CListBox &listBox, SPEEDLIMITSLIST &list);
  71.  
  72. // ▄berschreibungen
  73.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  74.     //{{AFX_VIRTUAL(COptionsSpeedLimitPage)
  75.     protected:
  76.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstⁿtzung
  77.     //}}AFX_VIRTUAL
  78.  
  79. // Implementierung
  80. protected:
  81.  
  82.     // Generierte Nachrichtenzuordnungsfunktionen
  83.     //{{AFX_MSG(COptionsSpeedLimitPage)
  84.     virtual BOOL OnInitDialog();
  85.     afx_msg void OnRadio();
  86.     afx_msg void OnSpeedlimitDownloadAdd();
  87.     afx_msg void OnSpeedlimitDownloadRemove();
  88.     afx_msg void OnSpeedlimitDownloadUp();
  89.     afx_msg void OnSpeedlimitDownloadDown();
  90.     afx_msg void OnDblclkSpeedlimitDownloadRulesList();
  91.     afx_msg void OnSpeedlimitUploadAdd();
  92.     afx_msg void OnSpeedlimitUploadRemove();
  93.     afx_msg void OnSpeedlimitUploadUp();
  94.     afx_msg void OnSpeedlimitUploadDown();
  95.     afx_msg void OnDblclkSpeedlimitUploadRulesList();
  96.     //}}AFX_MSG
  97.     DECLARE_MESSAGE_MAP()
  98. };
  99.  
  100. //{{AFX_INSERT_LOCATION}}
  101. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  102.  
  103. #endif // AFX_OPTIONSSPEEDLIMITPAGE_H__C47564E9_A44A_4103_A810_109ECD6215F8__INCLUDED_
  104.